package com.example.su_shi_tan_mine.child.bean

import com.example.su_shi_tan_bas_lib.adapter.multi22.JssNewMultiItemEntity
import java.io.Serializable

data class ServiceCustomerListBean(
    var add_time: String,
    var aid: Int,
    var content: String,
    var id: Int,
    //pm=0是用户发的1是管理员发的
    var pm: Int,
    var uid: Int,

    ) : JssNewMultiItemEntity {

    companion object {
        const val sending = 0
        const val receiver = 1
        const val unknown = 2
    }

    override val itemType: Int = when (pm) {
        receiver -> receiver
        sending -> sending
        else -> unknown
    }
}